const state = () => ({
  userData: {},
  selData: {},
})
const getters = {
  getuserData: (state) => state.userData,
  getselData: (state) => state.selData,
}
const mutations = {
  setuserData(state, value) {
    state.userData = { ...state.userData, ...value }
  },
  setSelData(state, value) {
    state.selData = value
  },
}
const actions = {
  setuserData({ commit }, data) {
    commit('setuserData', data)
  },
  setSelData({ commit }, data) {
    commit('setSelData', data)
  },
}
export default { state, getters, mutations, actions }
